package com.edgardeng.education.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.edgardeng.education.entity.BaseEntity;

/**
 * <p>
 * 学生成绩
 * </p>
 *
 * @author edgardeng
 * @since 2020-04-28
 */
@TableName("t_achievement")
public class Achievement extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 学生ID
     */
    private Long studentId;

    /**
     * 学科：1语文2数学3英语
     */
    private Integer subjectId;

    private Integer score;


    /**
     * 学科名称
     */
    private String subjectName;

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }
    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Achievement{" +
            "studentId=" + studentId +
            ", subjectId=" + subjectId +
            ", subjectName=" + subjectName +
                ", score=" + score +
        "}" + super.toString();
    }
}
